package com.ioc.service.serviceimpl;


import com.ioc.dao.UserDao;
import com.ioc.pojo.User;
import com.ioc.service.UserService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by win10 on 2020/2/8 13:56
 */
@Service
public class impl implements UserService {

    // @Qualifier("userDao")
    // @Autowired()
    @Resource(name = "userDao1")
    private UserDao userDao;

    public List<User> queryUserList() {
        if (userDao == null) {
            System.out.println("userdao is null");
        }

        return userDao.queryUserList();
    }


    public void printf() {
        System.out.println(userDao);
    }

}
